package com.fortune.util;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * Created by Administrator on 2018/6/13 0013.
 */
public class YearMonthDayUtil {

    public static String aa(String dates) {
        SimpleDateFormat format0 = new SimpleDateFormat("yyyy年MM月dd日");
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
        if(dates!= null && dates != ""){
            try {
                Date data = sdf.parse(dates);
                dates = format0.format(data);
            } catch (ParseException e) {
                e.printStackTrace();
            }
        }
        return dates;
    }
}
